home *** CD-ROM | disk | FTP | other *** search
/ Champak 141 / (Vol 141) Oct 17 2011.iso / Games / Clueless.swf / scripts / fl / video / VideoEvent.as < prev    next >
Encoding:
Text File  |  2011-10-17  |  2.5 KB  |  91 lines

  1. package fl.video
  2. {
  3.    import flash.events.Event;
  4.    
  5.    public class VideoEvent extends Event implements IVPEvent
  6.    {
  7.       
  8.       public static const FAST_FORWARD:String = "fastForward";
  9.       
  10.       public static const READY:String = "ready";
  11.       
  12.       public static const SKIN_LOADED:String = "skinLoaded";
  13.       
  14.       public static const SCRUB_FINISH:String = "scrubFinish";
  15.       
  16.       public static const BUFFERING_STATE_ENTERED:String = "bufferingStateEntered";
  17.       
  18.       public static const STOPPED_STATE_ENTERED:String = "stoppedStateEntered";
  19.       
  20.       public static const AUTO_REWOUND:String = "autoRewound";
  21.       
  22.       public static const SCRUB_START:String = "scrubStart";
  23.       
  24.       public static const PLAYHEAD_UPDATE:String = "playheadUpdate";
  25.       
  26.       public static const SEEKED:String = "seeked";
  27.       
  28.       public static const PLAYING_STATE_ENTERED:String = "playingStateEntered";
  29.       
  30.       public static const CLOSE:String = "close";
  31.       
  32.       public static const PAUSED_STATE_ENTERED:String = "pausedStateEntered";
  33.       
  34.       public static const COMPLETE:String = "complete";
  35.       
  36.       public static const REWIND:String = "rewind";
  37.       
  38.       public static const STATE_CHANGE:String = "stateChange";
  39.        
  40.       
  41.       private var _vp:uint;
  42.       
  43.       private var _playheadTime:Number;
  44.       
  45.       private var _state:String;
  46.       
  47.       public function VideoEvent(param1:String, param2:Boolean = false, param3:Boolean = false, param4:String = null, param5:Number = NaN, param6:uint = 0)
  48.       {
  49.          super(param1,param2,param3);
  50.          _state = param4;
  51.          _playheadTime = param5;
  52.          _vp = param6;
  53.       }
  54.       
  55.       public function set playheadTime(param1:Number) : void
  56.       {
  57.          _playheadTime = param1;
  58.       }
  59.       
  60.       public function get playheadTime() : Number
  61.       {
  62.          return _playheadTime;
  63.       }
  64.       
  65.       public function get state() : String
  66.       {
  67.          return _state;
  68.       }
  69.       
  70.       public function get vp() : uint
  71.       {
  72.          return _vp;
  73.       }
  74.       
  75.       override public function clone() : Event
  76.       {
  77.          return new VideoEvent(type,bubbles,cancelable,state,playheadTime,vp);
  78.       }
  79.       
  80.       public function set state(param1:String) : void
  81.       {
  82.          _state = param1;
  83.       }
  84.       
  85.       public function set vp(param1:uint) : void
  86.       {
  87.          _vp = param1;
  88.       }
  89.    }
  90. }
  91.